#-*- coding: utf-8 -*-
"""
@Author  : JACK
@File    : serializers.py
@Time    : 2020/5/7 15:48
@Software: PyCharm

"""
from rest_framework import serializers

from .models import *


class CardAPISerializer(serializers.ModelSerializer):  # 继承自ModelSerializer类
    '''序列化数据的类，根据model表来获取字段'''

    class Meta:
        model = Card
        fields = '__all__'
